package ControlLayer;
import TUILayer.*;
import java.util.Scanner;

/**
 * Write a description of class Main here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Main
{
    MainMenuUI mainMenu;

    public Main()
    {
         this.mainMenu = new MainMenuUI();
         startMenu();
    }
    
    public void startMenu() {
        boolean exit = false;
        
        while (!exit) //! means while exit not is true (that is: false)
        {
            mainMenu.writeMainMenu();
            int choise = mainMenu.readInt();
            
            if(choise == 1)
            {
                AddressCtr addressCtr = new AddressCtr();
            }
            else if(choise == 2)
            {
                DvdCtr dvdCtr = new DvdCtr();
            }
            else if(choise == 3)
            {
               LoanCtr loanCtr = new LoanCtr();
            }
            else {
                exit = true;
            }
        }
    }

}